<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>代理系统</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="__IMG__favicon.ico">
    {load href="__CSS__bootstrap.min.css"}
    {load href="__CSS__font-awesome.min.css"}
    {load href="__CSS__animate.min.css"}
    {load href="__CSS__style.min.css"} 
</head>
<style>
    .nav-header a {
        word-break: break-all;
    }
</style>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <!-- <h1>变量互动</h1> -->
                            <img alt="二维码" src="{$qrcode}" style="width: 100px;height: 100px;">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size: 15px"><strong class="font-bold">账号名称：{$uid.name}</strong></span>
                                    <span class="block m-t-xs" style="font-size: 15px"><strong class="font-bold">账户余额：{:number_format($uid.score / 10, 2)}</strong></span>
                                    <p></p>
                                    <span class="block m-t-xs" style="font-size: 15px"><strong class="font-bold">邀请码 ：{$uid.yqm}</strong></span>
                                    <p></p>
                                    <span class="block m-t-xs" style="font-size: 15px"><strong class="font-bold">推广链接：<a
                                            href="{$url}" target="_blank">{$url}</a></strong></span>
                                </span>
                            </a>

                        </div>
                        <div class="logo-element"><i class="fa fa-home"></i>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <i class="fa fa-edit"></i>
                            <span class="nav-label">团队管理</span>
                            <span class="fa arrow"></span>    </a>
                            <ul class="nav nav-second-level collapse">
                                <li>
                                    <a class="J_menuItem" href="{:url('lists',['url'=>1])}" data-index="3">成员管理</a>
                                </li>

                                <li>
                                    <a class="J_menuItem" href="{:url('viporder',['url'=>1])}" data-index="5">成员流水</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="{:url('shouyirecords',['next' => 1, 'url'=>1])}" data-index="5">成员收益</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="{:url('withdraw',['next' => 1, 'url'=>1])}" data-index="5">成员提现</a>
                                </li>
                            </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-edit"></i>
                            <span class="nav-label">账户管理</span>
                            <span class="fa arrow"></span>    </a>
                        <ul class="nav nav-second-level collapse">
                            <li>
                                <a class="J_menuItem" href="{:url('topup',['url'=>1])}" data-index="7">充值订单</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('order',['url'=>1])}" data-index="7">付费订单</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('shouyirecords',['url'=>1])}" data-index="4">收益记录</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('next',['url'=>1])}" data-index="4">下级账号</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('download',['url'=>1])}" data-index="4">推广包</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-edit"></i>
                            <span class="nav-label">提现管理</span>
                            <span class="fa arrow"></span>    </a>
                        <ul class="nav nav-second-level collapse">
                            <li>
                                <a class="J_menuItem" href="{:url('withdraw',['url'=>1])}" data-index="3">提现列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('bdzhifubao',['url'=>1])}" data-index="3">绑定支付宝</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('bdwechat',['url'=>1])}" data-index="3">绑定微信</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                      <!--   <form role="search" class="navbar-form-custom" method="post" action="http://www.zi-han.net/theme/hplus/search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form> -->
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        

                        <li class="hidden-xs">
                            <!-- <a href="{:request()->domain()}" target="_blank">访问网站</a> -->
                        </li>
                         
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="{:url('main')}">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
                <a href="{:url('index/out')}" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('main')}" frameborder="0" data-id="{:url('main')}" seamless></iframe>
            </div>

        </div>
        <!--右侧部分结束-->
        <!--<div id="small-chat"  style="display:none">
            <span class="badge badge-warning pull-right">5</span>
            <a class="open-small-chat">
                <i class="fa fa-comments"></i>
            </a>
        </div>-->
    </div>
    {load href="__JS__jquery.min.js"}
    {load href="__JS__bootstrap.min.js"}
    {load href="__PLUGINS__metisMenu/jquery.metisMenu.js"}
    {load href="__PLUGINS__slimscroll/jquery.slimscroll.min.js"}
    {load href="__PLUGINS__layer/layer.js"}
    {load href="__JS__hplus.min.js"}
    {load href="__JS__contabs.min.js"}
    {load href="__PLUGINS__pace/pace.min.js"}
    {load href="__PLUGINS__sweetalert/sweetalert.css"}
    {load href="__PLUGINS__sweetalert/sweetalert.min.js"}
    <script type="text/javascript">
    $('.cache').click(function(){
     
        var layerindex = layer.load(0, {shade: false}); //0代表加载的风格，支持0-2
        $.getJSON("{:url('cache_del')}",function(result){
            $.each(result, function(i, name){
              swal(name);
            });
            layer.close(layerindex);
        });
    })
     $('.zhuan').click(function(){
     
        var layerindex = layer.load(0, {shade: false}); //0代表加载的风格，支持0-2
        $.getJSON("{:url('jinbi')}",function(result){
            $.each(result, function(i, name){
              swal(name);
            });
            layer.close(layerindex);
        });
    })
    </script>
</body>
</html>
